package kr.or.javacafe.USCM.USCM107.web;

import java.util.*;
import java.sql.*;
import java.io.*;

import org.springframework.web.servlet.mvc.multiaction.MultiActionController;
import org.springframework.web.servlet.ModelAndView;
import org.apache.commons.logging.*;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import kr.or.javacafe.common.dao.*;
import kr.or.javacafe.common.util.*;

import kr.or.javacafe.USCM.USCM107.dao.*;
import kr.or.javacafe.USCM.USCM107.service.*;
import kr.or.javacafe.USCM.USCM107.model.*;


public class USCM107Controller extends MultiActionController {
	
	protected final static Log logger = LogFactory.getLog(USCM107Controller.class);
	
	private USCM107Service uscm107Service;
	
	public void setUscm107Service(USCM107Service uscm107Service){
		this.uscm107Service = uscm107Service;
	}
	

	
	public ModelAndView uscm107Main(HttpServletRequest request, HttpServletResponse response) throws Exception
	{
		ModelAndView returnPage = new ModelAndView("USCM107/uscm107Main");		
		return returnPage;
	}

		
	public ModelAndView findMemberList(HttpServletRequest request, HttpServletResponse response) throws Exception
	{
		if (logger.isDebugEnabled()){ logger.debug("Entering " + getClass() + "." + "ajax_path_normal()"); }
		
		List objList = uscm107Service.findMemberList();
		
		ModelAndView returnPage = new ModelAndView("JSON", "JSON_DATA", objList);	
		returnPage.addObject("objList", objList);
		
		return returnPage;
	}	
	
}
